import { request } from '@/utils'

export function getSiteSetting(type) {
  return request({
    url: '/admin/siteSetting',
    method: 'GET',
    params: {
      type,
    },
  })
}

export function saveSiteSetting(siteSettingForm) {
  return request({
    url: '/admin/siteSetting',
    method: 'POST',
    data: JSON.stringify(siteSettingForm),
    headers: {
      'Content-type': 'application/json;charset=utf-8',
    },
  })
}
